package com.py.framework.scheduler.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.py.framework.scheduler.dao.TaskDao;
import com.py.framework.scheduler.entity.TaskEntity;
import com.py.framework.scheduler.service.TaskService;

/**
 * 定时任务Service实现
 * @author Leegern
 * @date   2018年5月7日
 */
@Service
public class TaskServiceImpl implements TaskService {
	
	@Autowired
	private TaskDao taskDao;
	
	/*
	 * (non-Javadoc)
	 * @see com.py.framework.scheduler.service.TaskService#getAllTasks()
	 */
	@Override
	public List<TaskEntity> getAllTasks() {
		return taskDao.getAllTasks();
	}
}
